﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using TalentPools.Model;
using TalentPools.DAL;

namespace TalentPools.BLL
{
    public class Company_BaseMeansManager
    {
        /// <summary>
        /// 获取企业详情
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        public Company_BaseMeans GetCompanyById(int id)
        {
            return new Company_BaseMeansService().GetCompanyById(id);
        }
        public int GetPageCount(string str1)
        {
            return new Company_BaseMeansService().GetPageCount(str1);
        }
        public List<Company_BaseMeans> GetCompanyByPage(int pageIndex, int pageSize, string str)
        {
            return new Company_BaseMeansService().GetCompanyByPage(pageIndex, pageSize, str);
        }

        public List<Company_BaseMeans> GetCompanyBaseMeans()
        {
            return new Company_BaseMeansService().GetCompanyBaseMeans();
        }
        /// <summary>
        /// 插入基本信息
        /// </summary>
        /// <param name="basemean"></param>
        /// <returns></returns>
        public bool InsertBaseMeans(Company_BaseMeans basemean)
        {
            return new Company_BaseMeansService().InsertBaseMeans(basemean);
        }
        /// <summary>
        /// 查询基本信息的数量
        /// </summary>
        /// <param name="companyId"></param>
        /// <returns></returns>
        public int GetBaseMeanCount(string companyName)
        {
            return new Company_BaseMeansService().CheckBaseMeansCount(companyName);
        }

        public bool UpdateBasemean(Company_BaseMeans basemean)
        {
            return new Company_BaseMeansService().UpdateBaseMeans(basemean);
        }

        public Company_BaseMeans GetBasemeanObj(string name)
        {
            return new Company_BaseMeansService().GetCompanyBaseMeanObj(name);
        }
    }
}
